package {
	import ypmits.clock.Clock;
	import ypmits.clock.ClockSkin;
	import ypmits.clock.ClockType;
	import ypmits.setup.EasySetup;
	import ypmits.setup.EasySetupInput;
	import ypmits.setup.view.FullScreenButtonGraphic;

	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.geom.Point;

	/**
	 * @author Dave Lenz
	 */
	public class ClockTest extends Sprite {
		public function ClockTest() {
			var _input : EasySetupInput = new EasySetupInput( );
			_input.fullscreenbuttongraphic = new FullScreenButtonGraphic( 15, 15, 0xFFFFFF, stage, StageAlign.BOTTOM_LEFT );
			_input.fullscreenoffset = new Point( 5, 5 );
			
			EasySetup.instance.init( this, _input );
			EasySetup.instance.debug = false;
			
			var analogueClock : Clock = new Clock( ClockType.ANALOGUE, new ClockSkin( ), true );
			analogueClock.x = 200;
			analogueClock.y = 200;
			addChild( analogueClock );
			
			var digitalClock : Clock = new Clock( ClockType.DIGITAL, new ClockSkin( ), true );
			digitalClock.x = 400;
			digitalClock.y = 300;
			addChild( digitalClock );
		}
	}
}
